package com.mb.app.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.models.auth.In;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 渠道配置信息
 * </p>
 *
 * @author liliping
 * @since 2019-03-21
 */
@TableName("tb_channel_config")
public class TbChannelConfig implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 渠道编号
	 */
//	@TableField(value="channel_id")
	@TableId(value = "channel_id")
	private Long channelId;

	/**
	 * 渠道名称
	 */
	@TableField(value="channel_name")
	private String channelName;

	/**
	 * 渠道标识代码
	 */
	@TableField(value="channel_code")
	private String channelCode;

	/**
	 * 渠道用户编号
	 */
	@TableField(value="channel_user_id")
	private Long channelUserId;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@TableField(value="update_time")
	private Date updateTime;

	/**
	 * 数据状态
0：删除
1：正常
	 */
	@TableField(value="data_status")
	private Integer dataStatus;

	/**
	 * 
	 */
	@TableField(value="create_user_id")
	private Long createUserId;

	/**
	 * 
	 */
	@TableField(value="update_user_id")
	private Long updateUserId;

	/**
	 * 扣减比例
	 */
	@TableField(value="deduct_rate")
	private BigDecimal deductRate;

	@TableField(value="app_id")
	private Long appId;

	@TableField(exist = false)
	private String name;

	@TableField(exist = false)
	private String appName;


	@TableField(value="loan_switch")
	private Integer loanSwitch;

	public Integer getLoanSwitch() {
		return loanSwitch;
	}

	public void setLoanSwitch(Integer loanSwitch) {
		this.loanSwitch = loanSwitch;
	}

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public Long getAppId() {
		return appId;
	}

	public void setAppId(Long appId) {
		this.appId = appId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getChannelId() {
		return channelId;
	}

	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public String getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}

	public Long getChannelUserId() {
		return channelUserId;
	}

	public void setChannelUserId(Long channelUserId) {
		this.channelUserId = channelUserId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getDataStatus() {
		return dataStatus;
	}

	public void setDataStatus(Integer dataStatus) {
		this.dataStatus = dataStatus;
	}

	public Long getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	public Long getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(Long updateUserId) {
		this.updateUserId = updateUserId;
	}

	public BigDecimal getDeductRate() {
		return deductRate;
	}

	public void setDeductRate(BigDecimal deductRate) {
		this.deductRate = deductRate;
	}

}
